import "https://lf-cdn.coze.cn/obj/unpkg/flow-platform/chat-app-sdk/1.2.0-beta.5/libs/cn/index.js";
const cozeWebSDK = new CozeWebSDK.WebChatClient({
    config: {
        // Agent ID
        bot_id: '7465870003297320972',
    },
    auth: {
        // Authentication methods, the default type is 'unauth', which means no authentication is required; it is recommended to set it to 'token', indicating authentication through PAT (Personal Access Token) or OAuth
        type: 'token',
        // When the type is set to 'token', it is necessary to configure a PAT (Personal Access Token) or OAuth access token for authentication.
        token: 'pat_pDUGkSqd4fghV0Br6yEzSDOhP4GcN3QwmXyyuufiw9k4BPg9Heb3YwrOcjklhniD',
        // When the access token expires, use a new token and set it as needed.
        onRefreshToken: () => 'pat_IV1yjMGitoCoT21o0Xnvrcy5KmfhF5C4BHa0NHyhO4yG4d55Q2szAiDAHcbKeaOE',
    },
    componentProps: {
        title: '格智学舟小助手',
    },
    userInfo: {
        id: '3347346863',
        url: 'https://lf-coze-web-cdn.coze.cn/obj/coze-web-cn/obric/coze/favicon.1970.png',
        nickname: 'UserA',
    },
    ui: {
        base: {
            icon: 'https://huahuo-java-web-ai.oss-cn-beijing.aliyuncs.com/logo2.jpg',
            layout: 'pc',
            zIndex: 1000,
        }
    },
    asstBtn: {
        isNeed: true,
    },
    chatBot: {
        title: "Kids' Playmate | Snowy",
        uploadable: true,
        width: 800,
        el: undefined,
    },
    footer: {
        isShow: true,
        expressionText: 'Powered by {{name}}', linkvars: {
            name: {
                text: '格智学舟',
                link: 'https://www.test1.com'
            },
        }
    },
});
